Automatic vulnerability detection based on clustering of applications with similar structures and data flows

ABSTRACT

A system includes a memory and processor. The memory stores code segment vulnerability findings that were generated through static application security testing (SAST). The processor generates a code fingerprint for each code segment, which corresponds to an abstract syntax tree that has been augmented by data flow information and flattened. The processor applies a machine learning clustering algorithm to group the code fingerprints into clusters of fingerprints that share one or more features. The processor additionally determines that both the fingerprint corresponding to the first source code segment and the fingerprint corresponding to a second source code segment belong to the same cluster. In response, the processor transmits an alert to a device of an administrator, identifying the second code segment as vulnerable to a real vulnerability, where a vulnerability finding for the first code segment has been classified as the real vulnerability through external review.

TECHNICAL FIELD

The present disclosure relates generally to information security and vulnerability assessment in source code, and more particularly, to automatic vulnerability detection based on clustering of applications with similar structures and data flows.

BACKGROUND

Static Application Security Testing (SAST) is a technique for analyzing source code to identify potential security vulnerabilities within the code. Such vulnerabilities may include, for example, buffer overflow vulnerabilities, SQL injection vulnerabilities, and cross-site scripting vulnerabilities, among others. In order to help ensure that any security vulnerabilities within a software code are identified, SAST tools are often designed to be over-inclusive. Accordingly, the findings reported by a SAST analysis often include false positives (i.e., findings that are not relevant to the security or safety of the analyzed source code). In order to separate these false positives from actual security vulnerabilities identified during the SAST analysis, an analysis of the SAST findings is often performed, during which considerable computational resources (e.g., processing and/or memory resources) may be consumed, particularly for organizations that operate thousands of applications, each of which is subjected to SAST analysis.

SUMMARY

This disclosure contemplates a security vulnerability triage tool that is configured to automatically and efficiently classify vulnerability findings generated through static application security testing (SAST) as real vulnerabilities or false positives. In particular, the tool is designed to cluster source code segments into similarity groups, under the assumption that similar source code segments are likely to exhibit similar security vulnerabilities. For example, if a first source code segment is known to exhibit a given security vulnerability, then a second source code segment that performs the same functions as the first source code segment and differs only in minor details from the first source code segment—for example, it uses different variable naming conventions—is likely to also exhibit that same vulnerability. To perform such clustering, the tool is designed to generate a “source code fingerprint” for each source code segment, which includes information associated with the structure, function, and data flow associated with the source code segment, and to apply a machine learning clustering algorithm to the collection of source code fingerprints to identify clusters of similar fingerprints.

By leveraging prior review of the vulnerability findings associated with similar source code segments, to automatically classify the vulnerability findings for a given source code segment as actual vulnerabilities or false positives, the tool is able to conserve considerable processing and memory resources that would otherwise be expended if false positives were not identified within the vulnerability findings generated through SAST analysis and computer resources were allocated to dealing with false security vulnerabilities. Furthermore, by automatically identifying false positives, certain embodiments of the tool provide enhanced security by enabling resources to be directed towards addressing/resolving actual security vulnerabilities, rather than being expending on investigating false positives. In this manner, certain embodiments of the tool provide technical improvements to the computer system on which the source code is installed. For example, by resolving actual security vulnerabilities, certain embodiments may prevent viruses and malware from infecting an organization's computer system. This in turn may (1) conserve processing and memory resources that would otherwise be consumed by the viruses/malware operating within the system, (2) allow the software installed on that system to run faster and smoother, avoiding system crashes/failures that may be caused by the viruses/malware, (3) conserve networking resources that may otherwise be expended by the virus/malware communicating with other systems (e.g., in an attempt to infect those other systems), and (4) protect data stored within the system from corruption by the viruses/malware, avoiding the need to expend computational resources in reproducing corrupted data. Given that organizations are typically only able to direct a finite amount of resources towards application security, focusing those resources on actual security vulnerabilities rather than false positives means that actual vulnerabilities may be resolved sooner than would otherwise be the case, thereby reducing the likelihood that the vulnerability is identified and used by viruses/malware to gain access to the computer system. Certain embodiments of the tool are described below.

According to an embodiment, a system includes a database, a memory, and a hardware processor communicatively coupled to the database and the memory. The database stores a plurality of source code segments. The plurality of source code segment includes a first source code segment and a second source code segment. The memory stores a first plurality of vulnerability findings for the first source code segment and a second plurality of vulnerability findings for the second source code segment. The first plurality of vulnerability findings were generated through static application security testing (SAST) of the first source code segment. A first vulnerability finding of the first plurality of vulnerability findings has been classified as a real vulnerability by an external review, and a second vulnerability finding of the first plurality of vulnerability findings has been classified as a false positive by the external review. The second plurality of vulnerability findings were generated through SAST of the second source code segment. The hardware processor generates a plurality of source code fingerprints. Each source code fingerprint of the plurality of source code fingerprints corresponds to a source code segment of the plurality of source code segments. Generating the source code fingerprint includes (1) generating, from the corresponding source code segment, an abstract syntax tree, (2) performing a data flow analysis on the corresponding source code segment, to generate information identifying flows of data through the corresponding source code segment, (3) augmenting the abstract syntax tree associated with the source code segment with the information identifying the flows of data through the source code segment, and (4) flattening the augmented abstract syntax tree associated with the source code segment. The hardware processor also determines that the source code fingerprint corresponding to the first source code segment matches the source code fingerprint corresponding to the second source code segment. In response to determining that the source code fingerprint corresponding to the first source code segment matches the source code fingerprint corresponding to the second source code segment, the hardware processor automatically classifies a first vulnerability finding of the second plurality of vulnerability findings as the real vulnerability, in response to determining that the first vulnerability finding of the second plurality of vulnerability findings matches the first vulnerability finding of the first plurality of vulnerability findings. The hardware processor further automatically classifies a second vulnerability finding of the second plurality of vulnerability findings as the false positive, in response to determining that the second vulnerability finding of the second plurality of vulnerability findings matches the second vulnerability finding of the first plurality of vulnerability findings.

According to another embodiment, a system includes a database, a memory, and a hardware processor communicatively coupled to the memory and to the database. The database stores a plurality of source code segments. The plurality of source code segments includes a first source code segment and a second source code segment. The memory stores a vulnerability finding for the first source code segment. The vulnerability finding was generated through static application security testing (SAST) of the first source code segment and was classified as a real vulnerability by an external review process. The hardware processor generates a plurality of source code fingerprints. Each source code fingerprint of the plurality of source code fingerprints corresponds to a source code segment of the plurality of source code segments. Generating the source code fingerprint includes (1) generating, from the corresponding source code segment, an abstract syntax tree, (2) performing a data flow analysis on the corresponding source code segment, to generate information identifying flows of data through the corresponding source code segment, (3) augmenting the abstract syntax tree associated with the source code segment with the information identifying the flows of data through the source code segment, and (4) flattening the augmented abstract syntax tree associated with the source code segment. The processor also applies a machine learning clustering algorithm to the plurality of source code fingerprints to group the plurality of source code fingerprints into a plurality of clusters. Each cluster of the plurality of clusters includes one or more source code fingerprints. Each of the one or more source code fingerprints of the cluster shares one or more features identified by the machine learning clustering algorithm. The processor additionally determines that both the source code fingerprint corresponding to the first source code segment and the source code fingerprint corresponding to the second source code segment belong to a first cluster of the plurality of clusters. In response to determining that both the source code fingerprint corresponding to the first source code segment and the source code fingerprint corresponding to the second source code segment belong to the first cluster of the plurality of clusters, the processor transmits an alert to a device of an administrator. The alert identifies the second source code segment as vulnerable to the real vulnerability.

The tool described in the present disclosure may be integrated into a practical application of a security vulnerability triage tool that can automatically identify false positives from the vulnerability findings generated during SAST analysis, and remove those false positives from the vulnerability findings. In this manner, the tool may conserve considerable computational resources that would otherwise be expended as part of an external review process during which each vulnerability finding generated during the SAST analysis is reviewed, in order to make sure it is not a false positive. Furthermore, the tool may conserve considerable processing resources that would otherwise be expended on attempting to resolve false security vulnerabilities, if false positives are not identified within the vulnerability findings generated during the SAST analysis

The tool may also provide a practical application of an application security tool that identifies and resolves potential source code vulnerabilities, based on similar vulnerabilities that have been identified and resolved for similar source code. By automatically identifying and resolving such security vulnerabilities, the tool may protect the system on which the source code is installed from unintentional data loss and/or other undesirable consequences of bad actors using the source code vulnerability to gain access to the system. For example, the tool may prevent viruses/malware from gaining access to the system and consuming system resources otherwise available to valid applications operating within the system (e.g., processing resources consumed by the operation of the viruses/malware, networking resources consumed by the viruses/malware attempting to spread to other computer systems, etc.). This may enable those valid applications to run faster and smoother than on an infected system, and may protect the system from system failures/crashes that lead to unintentional system downtime, interrupted processes, and/or data loss.

The tool may also provide a practical application by verifying the performance of one or more external SAST tools. In particular, by converting segments of source code into source code fingerprints, and identifying source code segments that share the same fingerprint, the tool is able to easily identify those source code segments that should exhibit the same security vulnerabilities as one another. Thus, the tool may identify any errors that have occurred during the SAST analysis process, based on any inconsistencies between the vulnerability findings generated for a first source code segment and the vulnerability findings generated for a second source code segment that shares the same fingerprint as the first source code segment. In this manner, the tool may identify and alert developers of the SAST tool to potential issues with the tool, thereby saving the computational resources that would otherwise be expended by the SAST tool in generating potentially erroneous findings, and by developers analyzing any erroneous findings.

Certain embodiments may provide one or more technical advantages. As an example, by automatically identifying false positives within the vulnerability findings generated by a SAST tool, certain embodiments conserve processing and memory resources that would otherwise be expended during an analysis of each of the vulnerability findings generated by the SAST tool. As another example, by automatically prioritizing vulnerability findings that based on the likelihood that the vulnerability finding is associated with an actual vulnerability (as opposed to a false positive), certain embodiments enable the actual vulnerabilities within a system to be resolved earlier than otherwise, thereby improving system security. As a further example, by generating a source code fingerprint for each source code segment, certain embodiments are able to efficiently identify similar source code segments, which are likely to exhibit similar security vulnerabilities.

Certain embodiments may include none, some, or all of the above technical advantages. One or more other technical advantages may be readily apparent to one skilled in the art form the figures, descriptions, and claims included herein.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present disclosure, reference is now made to the following description, taken in conjunction with the accompanying drawings, in which:

FIG. 1 illustrates an example security vulnerability triage system;

FIG. 2 illustrates an example process by which the vulnerability triage tool of the system of FIG. 1 identifies potential false positives and/or false negatives in the vulnerability findings generated by static application security testing of the applications within the system; and

FIG. 3 presents a flowchart illustrating the manner by which the vulnerability triage tool of the system of FIG. 1 groups similar source code segments together.

DETAILED DESCRIPTION

Embodiments of the present disclosure and its advantages may be understood by referring to FIGS. 1 through 3 of the drawings, like numerals being used for like and corresponding parts of the various drawings.

I. System Overview

FIG. 1 illustrates an example security vulnerability triage system 100 that includes user(s) 104 (e.g., source code developer(s)), device(s) 106, network 108, first database 110, second database 114, third database 118, SAST tool 113, and vulnerability triage tool 102. As illustrated in FIG. 1 , first database 110 stores a set of source code segments 112, and second database 114 stores a set of security vulnerability findings 116 generated by SAST tool 113, through static application security testing (SAST) of source code segments 112. In the context of this disclosure, a security vulnerability is a flaw in a source code segment 112 that creates a security risk, while a security vulnerability finding 116 is a potential security vulnerability that has been identified by SAST tool 113 for a given source code segment 112. Due to the limitations of the static analysis process, SAST tends to generate a significant number of false positives in addition to identifying actual security vulnerabilities within source code. Because teams of developers 104 typically need to triage and investigate each security vulnerability finding 116 generated during a SAST process, considerable processing and memory resources may be saved by identifying and removing false positives from security vulnerability findings 116 before such investigation occurs.

Vulnerability triage tool 102 is configured to identify likely false positives within security vulnerability findings 116, in a computationally efficient manner, without relying on external review. In particular, the tool is configured to leverage validated vulnerability findings (e.g., vulnerability findings that have already undergone an external investigation/review process and have been labelled as actual vulnerabilities or false positives), to automatically identify likely false positives and/or actual vulnerabilities within those vulnerability findings 116 that have not yet undergone external review. To do so, the tool groups similar source code segments 116 into clusters 124, and uses any validated vulnerability findings within each cluster 124 (e.g., any vulnerability findings that have already undergone the external review process and have been classified as false positives or actual vulnerabilities) to identify likely false positives and/or likely actual vulnerabilities among those vulnerability findings 116 within the cluster that have not been subject to external review. Further details of the manner by which vulnerability triage tool 102 performs these tasks are presented below, and in the discussion of FIGS. 2 and 3 .

Device(s) 106 are used by user(s) 104 (e.g., source code developers) to: (1) communicate with vulnerability triage tool 102; (2) review vulnerability findings 116; (3) review source code segments 112; and/or (4) repair actual vulnerabilities within source code segments 112. As an example, user 104 may use device 106 to review a set of vulnerability findings 116 a generated for a given source code segment 112 a, to determine which (if any) of the vulnerability findings 116 a correspond to actual vulnerabilities, and which (if any) correspond to false positives. As part of this process, user 104 may use device 106 to review the source code segment 112 a (or a portion of the source code segment 112 a) for which vulnerability findings 116 a were generated. User 104 may also use device 106 to address any vulnerability findings 116 a that correspond to actual vulnerabilities. For example, user 104 may use device 106 to edit source code 112 a, to repair the source code segment by removing the vulnerability.

Devices 106 include any appropriate device for communicating with components of system 100 over network 108. For example, devices 106 may include a mobile phone, a computer, a laptop, a wireless or cellular telephone, a tablet, a server, an IoT device, and/or an automated assistant, among others. This disclosure contemplates devices 106 being any appropriate device for sending and receiving information over network 108, and/or displaying information (e.g., vulnerability findings 116, source code segments 112, etc.). In some embodiments, device 106 may include a display, a keypad, or other appropriate terminal equipment usable by user 104. In some embodiments, an application executed by a processor of device 106 may perform the functions described herein.

Network 108 facilitates communications between components of system 100 including, for example, vulnerability triage tool 102, devices 106, first database 110, second database 114, third database 118, and/or SAST tool 113. Network 108 may include any interconnecting systems capable of transmitting audio, video, signals, data, messages, or any combination of the preceding. For example, network 108 may include all or a portion of a public switched telephone network (PSTN), a public data network, a metropolitan area network (MAN), a wide area network (WAN), a local, regional, or global communication or computer network, such as the Internet, a wireline or wireless network, or any other suitable communication link, including combinations thereof, operable to facilitate communication between components of system 100.

Database 110 is any storage location within system 100 where source code segments 112 may be stored. For example, database 110 may correspond to a database, a server, a local storage system, an external storage system, cloud storage, and/or any other suitable storage location. In certain embodiments, database 110 may correspond to a source code repository.

Each source code segment 112 a through 112 n stored within database 110 corresponds to a portion of source code. As an example, in certain embodiments, a given source code segment 112 a may correspond to all of the source code that makes up an application. As another example, in some embodiments, a source code segment 112 a may correspond to a portion of the source code that makes up an application. For instance, source code segment 112 a may correspond to a function or subroutine that is used within an application. Each of source code segments 112 a through 112 n may be written in any suitable programming language. For example, one or more of source code segments 112 a through 112 n may be written in C++, C#, Java, Python, Scala, JavaScript, Perl, Ruby, HTML, any other suitable programming language, and/or any suitable combination of the preceding.

SAST tool 113 corresponds to any suitable static application security testing tool that is configured to analyze source code segments 112 (and/or object code generated from source code segments 112), without executing the code, in order to identify potential security vulnerabilities within the source code segments. This disclosure contemplates that SAST tool 113 may correspond to any open source and/or proprietary static application security testing tool including, for example, Klocwork, Checkmarx, Veracode, Codacy, Insider CLI, and/or any other suitable current or future static application security testing tool. SAST tool 113 may identify potential security vulnerabilities within a given source code segment 112 in any suitable manner. For example, SAST tool 113 may identify vulnerabilities by highlighting portions of potentially problematic code, providing a snippet of the code segment associated with the potential vulnerability, identifying a portion of the code segment associated with the potential vulnerability by filename, location, and/or line number, identifying a type of the potential vulnerability (e.g., buffer overflow vulnerability, cross-site scripting vulnerability, SQL injection vulnerability, etc.) and/or in any other suitable manner.

Database 114 is any storage location within system 100 where the vulnerability findings 116 that have been generated by SAST tool 113 may be stored. For example, database 114 may correspond to a database, a server, a local storage system, an external storage system, cloud storage, and/or any other suitable storage location. In certain embodiments, SAST tool 113 is configured to store vulnerability findings 116 directly within database 114. In some embodiments, SAST tool 113 is configured to provide vulnerability findings 116 to another component of system 100, which then stores the vulnerability findings in database 114. For example, SAST tool 113 may provide vulnerability findings 116 to either of device 106 or vulnerability triage tool 102, which may then store the findings in database 114.

Each of vulnerability findings 116 a through 116 s is associated with a source code segment 112 and corresponds to vulnerability findings generated by SAST tool 113 for the associated source code segment. Vulnerability findings 116 may identify any of a number of potential security vulnerabilities that may be present in source code 112. Such vulnerabilities may include, for example, vulnerabilities related to: (1) SQL injection; (2) cross-site scripting; (3) buffer overflows; (4) potential NULL pointer dereferences; (5) writes to potentially read-only memory; (6) use of memory that has already been deallocated; (7) use of out-of-scope memory, etc.

In certain embodiments, one or more of vulnerability findings 116 may also include an indication of whether or not the vulnerability finding has been verified by an external review. For example, in response to SAST tool 113 generating vulnerability findings 116 a for source code segment 112 a, user 104 may review the vulnerability findings to determine which (if any) correspond to actual vulnerabilities and which (if any) correspond to false positives. As a specific example, vulnerability findings 116 a may include a first vulnerability finding and a second vulnerability finding. User 104 may review these vulnerability findings and determine that the first vulnerability finding corresponds to an actual vulnerability, while the second vulnerability finding corresponds to a false positive. Accordingly, user 104 may store, as part of vulnerability findings 116 a in database 114, an indication that the first vulnerability finding within vulnerability findings 116 a corresponds to an actual vulnerability and the second vulnerability finding within vulnerability findings 116 a corresponds to a false positive.

As illustrated in FIG. 1 , vulnerability triage tool 102 includes processor 126 and memory 128. This disclosure contemplates processor 126 and memory 128 being configured to perform any of the functions of vulnerability triage tool 102 described herein. Generally vulnerability triage tool 102 (1) generates a set of source code fingerprints 120 from source code segments 112, (2) groups the source code fingerprints into clusters 124, based on the similarities between the fingerprints, and (3) leverages any verified vulnerability findings within each cluster 124 to automatically classify certain of the other vulnerability findings within the cluster as false positives and/or actual vulnerabilities. The manner by which vulnerability triage tool 102 performs these functions is described in further detail below, and in the discussion of FIGS. 2 and 3 .

Processor 126 is any electronic circuitry, including, but not limited to central processing units (CPUs), graphics processing units (GPUs), microprocessors, application specific integrated circuits (ASIC), application specific instruction set processor (ASIP), and/or state machines, that communicatively couples to memory 128 and controls the operation of vulnerability triage tool 102. Processor 126 may be 8-bit, 16-bit, 32-bit, 64-bit or of any other suitable architecture. Processor 126 may include an arithmetic logic unit (ALU) for performing arithmetic and logic operations, processor registers that supply operands to the ALU and store the results of ALU operations, and a control unit that fetches instructions from memory and executes them by directing the coordinated operations of the ALU, registers and other components. Processor 126 may include other hardware and software that operates to control and process information. Processor 126 executes software (e.g., instructions 130) stored on memory 128 to perform any of the functions described herein. Processor 126 controls the operation and administration of vulnerability triage tool 102 by processing information received from device(s) 106, network 108, first database 110, SAST tool 113, second database 114, third database 118, and/or memory 128. Processor 126 may be a programmable logic device, a microcontroller, a microprocessor, any suitable processing device, or any suitable combination of the preceding. Processor 126 is not limited to a single processing device and may encompass multiple processing devices.

Memory 128 may store, either permanently or temporarily, data, operational software, or other information/instructions 130 for processor 126. Memory 128 may include any one or a combination of volatile or non-volatile local or remote devices suitable for storing information. For example, memory 128 may include random access memory (RAM), read only memory (ROM), magnetic storage devices, optical storage devices, or any other suitable information storage device or a combination of these devices. The software represents any suitable set of instructions, logic, or code embodied in a computer-readable storage medium. For example, the software may be embodied in memory 128, a disk, a CD, or a flash drive. In particular embodiments, the software may include an application executable by processor 126 to perform one or more of the functions described herein.

In certain embodiments, memory 128 may also store semantic analysis algorithm 132, data flow analysis algorithm 134, and machine learning algorithms 136 a and 136 b. Vulnerability triage tool 102 is configured to apply semantic analysis algorithm 132 and data flow analysis algorithm 134 to each of source code segments 112 a through 112 n to generate an augmented syntax tree corresponding to the source code segment. In particular, vulnerability triage tool 102 is configured to apply semantic analysis algorithm 132 to each source code segment 112 a through 112 n to generate an abstract syntax tree associated with the source code segment, which includes information related to the structure/content of the source code segment. Vulnerability triage tool 102 is also configured to apply data flow analysis algorithm 134 to each source code segment 112 a through 112 n, to generate information related to the flow of data through the source code segment—e.g., data ingress, usage, and egress within the source segment. Vulnerability triage tool 102 uses the data flow information that was generated by applying data flow analysis algorithm 134 to each source code segment 112 a through 112 n to augment the corresponding abstract syntax tree that was generated for each source code segment 112 a through 112 n using semantic analysis algorithm 132, forming an augmented abstract syntax tree for each source code segment 112 a through 112 n. Vulnerability triage tool 102 then generates a fingerprint 120 for each source code segment 112 by flattening the corresponding augmented abstract syntax tree that the tool had generated for the source code segment. Vulnerability triage tool 102 then stores each fingerprint 120 a through 120 n in database 118.

Machine learning algorithm 136 a is a machine learning clustering algorithm used by vulnerability triage tool 102 to cluster source code fingerprints of the set of source code fingerprints 120 a through 120 n into fingerprint clusters 124 a through 124 p. Such clustering is performed based on similarities between fingerprints 120 a through 120 n, as determined by the machine learning clustering algorithm. In particular, in certain embodiments, each fingerprint cluster 124 a through 124 p may include multiple fingerprints 120 that share one or more common features, and/or include one or more similar features, as determined by machine learning clustering algorithm 136 a. In some embodiments, the set of fingerprint clusters 124 may include a cluster 124 p that stores one or more source code fingerprints 120 that are not similar to any of the other source code fingerprints. For example, the set of fingerprint clusters 124 may include a cluster 124 p that stores a first fingerprint 120 n that machine learning clustering algorithm 136 a determined was not similar to any of the other source code fingerprints 120 a through 120 m, and a second fingerprint 120 m that machine learning clustering algorithm 136 a determined was not similar to any of the other source code fingerprints 120 a through 1201, and 120 n.

Machine learning clustering algorithm 136 a may be any suitable machine learning clustering algorithm, including, for example, an unsupervised machine learning algorithm. For example, in certain embodiments, machine learning clustering algorithm 136 a may be a K-means clustering algorithm. In some embodiments, machine learning clustering algorithm 136 a may implement fuzzy logic. The use of fuzzy logic may enable tuning of the size and/or number of clusters 124 generated by machine learning clustering algorithm 136 a.

In response to applying machine learning clustering algorithm 136 a, to generate clusters 124, vulnerability triage tool 102 is configured to store clusters 124 in database 118. As illustrated in FIG. 1 , database 118 is any storage location within system 100 where the source code fingerprints 120 and/or fingerprint clusters 124 may be stored. For example, database 118 may correspond to a database, a server, a local storage system, an external storage system, cloud storage, and/or any other suitable storage location.

Each fingerprint cluster 124 stored in database 118 is associated with (1) one or more source code segments 112, from which the fingerprints 120 included in the cluster were generated, and (2) one or more sets of vulnerability findings 116, which were generated by SAST tool 113 for the one or more source code segments 112 from which the fingerprints 120 included in the cluster were generated. For example, a given fingerprint cluster 124 a that includes a first fingerprint 120 a and a second fingerprint 120 b is associated with (1) a first source code segment 112 a, from which first fingerprint 120 a was generated, (2) a second source code segment 112 b, from which second fingerprint 120 b was generated, (3) a first set of vulnerability findings 116 a, which were generated by SAST tool 113 for the first source code segment 112 a, and (4) a second set of vulnerability findings 116 b, which were generated by SAST tool 113 for the second source code segment 112 b. In certain embodiments, one or more of vulnerability findings included in the sets of vulnerability findings 116 associated with a given fingerprint cluster 124 have been verified by an external review process. For example, user 104 may have investigated one or more of the vulnerability findings and classified them as actual vulnerabilities and/or false positives.

Memory 128 may also store a second machine learning algorithm—machine learning algorithm 136 b—that is designed to leverage the information associated with each cluster 124 to identify likely real vulnerabilities, likely false positives, and/or likely false negatives for the source code segments 112 associated with the cluster, based on the assumption that similar source code segments (as determined based on the similarity of their source code fingerprints) are likely to be affected by similar security vulnerabilities. As an example, a first source code segment that has been written in a first programming language (e.g., C++) to perform a given function is a particular manner is likely to be affected by the same security vulnerability as a second source code segment that has been written in a second programming language (e.g., Java) to perform the same function in the same manner as the first source code segment. Accordingly, if a vulnerability finding 116 for the first source code segment has been classified as an actual vulnerability during an external review process, there is a high probability that a similar vulnerability finding for the second source code segment is also an actual vulnerability. As another example, if a particular vulnerability finding has been identified for the majority of the source code segments 112 that are included within a given fingerprint cluster 124, there is a reasonable probability that that particular vulnerability finding should also have been identified for the remaining source code segments 112 included within the fingerprint cluster (e.g., the particular vulnerability finding is a false negative for those remaining source code segments). Machine learning algorithm 136 b is any suitable machine learning algorithm that is configured to identify likely actual vulnerabilities, likely false positives, and/or likely false negatives within the vulnerability findings 116 generated for the source code segments 112 associated with a given fingerprint cluster 124. For example, machine learning algorithm 136 b may be a neural network machine learning algorithm or any other suitable machine learning algorithm. In certain embodiments, machine learning algorithm 136 b may implement gradient descent iterative methods. In some embodiments, machine learning algorithm 136 b may implement a “drunkards walk” technique.

Modifications, additions, or omissions may be made to the systems described herein without departing from the scope of the invention. For example, system 100 may include any number of existing users 104, devices 106, networks 108, databases 110, database 114, databases 118, source code segments 112, SAST tools 113, source code vulnerability findings 116, source code fingerprints 120, fingerprint clusters 124, processors 126, memories 128, semantic analysis algorithms 132, data flow analysis algorithms 134, and/or machine learning algorithms 136 a/b. The components may be integrated or separated. Moreover, the operations may be performed by more, fewer, or other components. Additionally, the operations may be performed using any suitable logic comprising software, hardware, and/or other logic.

II. Process for Automatically Identifying False Positives and Real Vulnerabilities Using Source Code Fingerprints

FIG. 2 illustrates an example process by which vulnerability triage tool 102 analyzes the vulnerability findings 116 generated by SAST tool 113, and leverages previously validated vulnerability findings (e.g., vulnerability findings 116 that have been classified as false positives and/or actual vulnerabilities during external review) to identify likely false positives, likely actual vulnerabilities, and/or likely false negatives within the vulnerability findings 116 that have not undergone external review.

As illustrated in FIG. 2 (described in conjunction with elements of FIG. 1 ), vulnerability triage tool 102 first performs semantic analysis 202 and data flow analysis 204 on source code segments 112. During semantic analysis 202, vulnerability triage tool 102 applies one or more semantic analysis algorithms 132 to source code segments 112 a through 112 n, to generate an abstract syntax tree for each source code segment. During data flow analysis 204, vulnerability triage tool 102 applies one or more data flow analysis algorithms 134 to source code segments 112 a through 112 n, to generate information about the ingress, egress, and usage of data within each source code segment.

Next, vulnerability triage tool 102 performs fingerprint creation process 206. During fingerprint creation process 206, vulnerability triage tool 102 augments each abstract syntax tree generated during semantic analysis 202 with the data flow information generated during data flow analysis 204. Vulnerability triage tool 102 then flattens each resulting augmented abstract syntax tree to generate a set of fingerprints 120. Each fingerprint 120 a through 120 n corresponds to a given source code segment 112 a through 112 n, and provides information about the structure and function of the source code segment.

During process 208, vulnerability triage tool 102 groups similar fingerprints 112 together to generate clusters 124 of similar source code fingerprints 112. As an example, in certain embodiments, vulnerability triage tool 102 may compare fingerprints of the set of fingerprints to identify two of more identical fingerprints, and group these identical fingerprints together, as a given cluster 124 a. As another example, in some embodiments, vulnerability triage tool 102 may apply machine learning clustering algorithm 136 a to fingerprints 112, to cluster fingerprints 112 according to the similarity of features within the fingerprints, as determined by the machine learning clustering algorithm. As explained above, in the discussion of FIG. 1 , machine learning clustering algorithm 136 a may be any suitable machine learning clustering algorithm. For example, in certain embodiments, machine learning clustering algorithm 136 a may correspond to a k-means clustering algorithm. In some embodiments, machine learning clustering algorithm 136 a may be a machine learning clustering algorithm that implements fuzzy logic.

In certain embodiments, clustering process 208 results in a set of clusters (e.g., clusters 124 a through 124 o) that each include similar source code fingerprints 112, and a cluster 124 p that includes dissimilar source code fingerprints 112 (e.g., source code fingerprints 112 that machine learning algorithm 136 a was unable to determine were similar to any of the other fingerprints 112.

After grouping source code fingerprints 112 into clusters 124, vulnerability triage tool 102 next performs vulnerability cluster analysis 212, by identifying the vulnerability findings 116 that have been generated through a security analysis 210 performed by SAST tool 113 on the source code segments 112 associated with each cluster 124. Those vulnerability findings 116 are then grouped with their corresponding source code segments 112 for further analysis by vulnerability triage tool 102. For example, consider a fingerprint cluster 124 a that includes a first source code fingerprint 120 a, generated from a first source code segment 112 a, and a second source code fingerprint 120 b, generated from a second source code segment 112 b. During vulnerability cluster analysis 212, vulnerability triage tool 102 identifies the vulnerability findings 116 a that were generated through security analysis 210 of the first source code segment 112 a, and the vulnerability findings 116 b that were generated through security analysis 210 of the second source code segment 112 b, and groups these together with the associated source code segments for further analysis.

In certain embodiments, security analysis 210 includes the security analysis performed by SAST tool 113 on each source code segment 112, as well as any external review performed on the vulnerability findings generated by SAST tool 113. For example, in response to SAST tool 113 generating vulnerability findings 116 a for source code segment 112 a, user 104 may review/investigate vulnerability findings 116 a and/or source code segment 112 a to determine whether or not any of the vulnerability findings 116 a are false positives. In particular, as a result of such review process, user 104 may classify one or more of vulnerability findings 116 a as false positives, and/or one or more of vulnerability findings 116 a as actual vulnerabilities. Such classification may be added to vulnerabilities findings 116 a, as those findings are stored in database 114.

After performing vulnerability cluster analysis 212 to generate groups of vulnerability findings 116 that are associated with similar source code segments 112 (as determined based on the similarity of their corresponding source code fingerprints 120), vulnerability triage tool 102 next performs error analysis 214. During error analysis 214, vulnerability triage tool 102 may leverage vulnerability findings 116 that have undergone external review/validation to automatically classify certain vulnerability findings that have not undergone such external review/validation as likely false positives and/or likely actual vulnerabilities, and/or identify likely false negatives (e.g., likely vulnerabilities within a given source code segment 112 that were not identified as vulnerability findings by SAST tool 113).

As a first example, consider a cluster 124 a that includes a pair of fingerprints—first fingerprint 120 a, corresponding to first source code segment 112 a, and second fingerprint 120 b—that vulnerability triage tool 102 has determined are identical. Furthermore, consider that (1) the vulnerability findings 116 a for the first source code segment 112 a include a first vulnerability finding and a second vulnerability finding, and that these vulnerability findings 116 a have undergone external review during which the first vulnerability finding was classified as an actual vulnerability, and the second vulnerability finding was classified as a false positive; and (2) the vulnerability findings 116 b for the second source code segment 112 b include the same first vulnerability findings and the same second vulnerability finding, but that these vulnerability findings 116 b have not undergone external review. During error analysis 214, vulnerability triage tool 102 may be configured to compare vulnerability findings 116 a and vulnerability findings 116 b and to classify the first vulnerability finding of vulnerability findings 116 b as an actual vulnerability, and the second vulnerability finding of vulnerability findings 116 b as a false positive, under the assumption that source code segments 112 a/b that result in identical source code fingerprints 120 a/b will exhibit the same vulnerabilities as one another. By automatically classifying the second vulnerability finding of vulnerability findings 116 b as a false positive, based on the same vulnerability finding in similar source code being classified as a false positive, vulnerability triage tool 102 may enable system 100 to conserve the computational resources that would otherwise be expended by user 104 manually reviewing this vulnerability finding. Furthermore, in certain embodiments, vulnerability triage tool 102 may be configured to automatically resolve the actual vulnerability within source code segments 112 b (corresponding to the first vulnerability finding of vulnerability findings 116 b), based on any knowledge the tool may have of the manner by which the actual vulnerability was resolved within source code segment 112 a. For example, in certain embodiments, vulnerability triage tool 102 may store, within memory 128, repair instructions associated with the vulnerability, which include instructions for modifying the source code associated with the vulnerability, in order to resolve the vulnerability. Vulnerability triage tool 102 may then execute these instructions, to modify source code segment 112 b, thereby resolving the vulnerability.

As another example, consider a cluster 124 b that includes a pair of fingerprints— fingerprint 120 c, corresponding to source code segment 112 c, and fingerprint 120 d, corresponding to source code segment 112 d—that vulnerability triage tool 102 has also determined are identical to one another. Furthermore, consider that (1) the vulnerability findings 116 c for source code segment 112 c include a first vulnerability finding and a second vulnerability finding; and (2) the vulnerability findings 116 d for source code segment 112 d do not include any vulnerability findings. During error analysis 214, vulnerability triage tool 102 may be configured to compare vulnerability findings 116 c and vulnerability findings 116 d, and determine that these vulnerability findings are inconsistent with one another. In particular, given that the source code fingerprints generated from source code segment 112 c and source code segment 112 d are identify, vulnerability triage tool 102 expects that both source code segments should exhibit the same vulnerabilities as one another. Accordingly, vulnerability triage tool 102 may transmit an alert to device 106 and/or SAST tool 113 indicating that an error may have occurred during the SAST analysis, leading to the inconsistent vulnerability findings.

As a further example, consider a cluster 124 c that includes several fingerprints— fingerprint 120 e, corresponding to source code segment 112 e, fingerprint 120 f, corresponding to source code segment 112 f, and fingerprint 120 g, corresponding to source code segment 112 g—that were grouped together into cluster 124 c by machine learning clustering algorithm, 136 a, based on similarities among the fingerprints. Each of source code segments 112 e through 112 g are associated with a set of vulnerability findings 116 e through 116 g. In certain embodiments, one or more of the vulnerabilities findings included in vulnerability findings 116 e through 116 g have been validated during an external review process (e.g., classified as actual vulnerabilities and/or false positives). Vulnerability triage tool 102 may be configured to apply machine learning algorithm 136 b to vulnerability findings 116 e through 116 g to determine a probability that each vulnerability finding corresponds to a false positive. For example, machine learning algorithm 136 b may be configured to determine that a vulnerability finding of the set of vulnerability findings 116 e is likely a false positive, where the set of vulnerability findings 116 g includes the same vulnerability finding, and it was classified as a false positive during an external review. Similarly, machine learning algorithm 136 b may be configured to identify a false negative for the set of vulnerability findings 116 e, where each of the other sets of vulnerability findings 116 f and 116 g include a given vulnerability finding, while the set of vulnerability findings 116 e does not.

While the above example is a relatively simple example of the application of machine learning algorithm 136 b, this disclosure contemplates that machine learning algorithm 136 b may be applied to much more complex situations. For example, machine learning algorithm 136 b may be applied to the vulnerability findings associated with a collection of hundreds of source code segments 112 that vulnerability triage tool 102 has grouped together as similar. For a given source code segment 112 i, machine learning algorithm 136 b may be configured to assign a false positive probability to each vulnerability finding of the associated set of vulnerability findings 116 i, based on the frequency of similar vulnerability findings within the collection (e.g., identification of the same type of vulnerability within other source code segments 112 within the collection of source code segments under consideration), the results of any external review performed on the similar vulnerability findings within the collection, and/or any other suitable factors. For example, machine learning algorithm 136 b may determine that an 80% probability exists that a given vulnerability finding of the set of vulnerability findings 116 i is a false positive, where similar vulnerability findings were made for 50% of the other source code segments within the collection, 20% of those similar vulnerability findings have undergone external review, and 90% of those similar vulnerability findings that have undergone external review have been classified as false positives.

By assigning false positive probabilities to the vulnerability findings 116 generated through SAST analysis, certain embodiments of vulnerability triage tool 102 are able to significantly reduce the computational resources consumed during the external review process and improve the security of system 100. For example, user 104 may prioritize those vulnerability findings that are likely to correspond to actual vulnerabilities, thereby resolving actual source code vulnerabilities within system 100 sooner than otherwise.

FIG. 3 presents a flowchart illustrating an example method 300 (described in conjunction with elements of FIGS. 1 and 2 ) used by vulnerability triage tool 102 to identify likely false positives within the vulnerability findings generated by a SAST tool.

During process 302, vulnerability triage tool 102 generates an abstract syntax tree for each source code element 112 a through 112 n, by applying semantic analysis algorithm 132. During process 304, vulnerability triage tool 102 augments each abstract syntax tree generated during process 302 with information obtained through an analysis of the data flow within the corresponding source code element 112. To perform such data flow analysis, vulnerability triage tool 102 applies data flow analysis algorithm 134 to each source code element 112. During process 306, vulnerability triage tool 102 flattens each augmented abstract syntax tree to generate a source code fingerprint 120 for each source code element 112. During process 308, vulnerability triage tool 102 groups the set of source code fingerprints 120 into clusters 124. As an example, in certain embodiments, vulnerability triage tool 102 groups source code fingerprints 120 into clusters 124 by identifying identical fingerprints within the set of source code fingerprints 120 and grouping such identical fingerprints into clusters 124. As another example, in certain embodiments, vulnerability triage tool 102 applies machine learning clustering algorithm 136 a to fingerprints 120 to group the fingerprints into clusters 124.

During process 310, vulnerability triage tool 102 selects a first cluster 124 a for consideration. During process 312, vulnerability triage tool 102 determines whether the cluster 124 is a cluster of identical fingerprints 120. If, during process 312 vulnerability triage tool 102 determines that the cluster includes two or more identical fingerprints 120, during process 314 vulnerability triage tool 102 determines whether the vulnerability findings 116 associated with each of the identical fingerprints are consistent with one another. If, during process 314 vulnerability triage tool 102 determines that the vulnerability findings 116 associated with each of the identical fingerprints are not consistent with one another, in step 316 vulnerability triage tool transmits an alert to user 104, notifying the user of this inconsistency. Method 300 then proceeds to process 320.

If, during process 314 vulnerability triage tool 102 determines that the vulnerability findings 116 associated with each of the identical fingerprints are consistent with one another, during process 318, vulnerability triage tool 102 propagates any verified vulnerability findings through the sets of vulnerability findings associated with the identical fingerprints. In particular, if a given vulnerability finding associated with one of the identical fingerprints was classified during external review as a false positive or an actual vulnerability, vulnerability triage tool 102 assigns this same classification to the corresponding vulnerability findings associated with the other identical fingerprints, under the assumption that the source code segments associated with the identical fingerprints should exhibit identical vulnerabilities.

During step 320, vulnerability triage tool 102 determines whether the set of fingerprint clusters 124 includes any additional clusters. If, during step 320 vulnerability triage tool 102 determines that the set of clusters 124 includes one or more additional clusters, during process 322 vulnerability triage tool 102 selects the next cluster for consideration. Method 300 then returns to process 312.

If, during process 312 vulnerability triage tool 102 determines that the cluster is not a cluster of identical fingerprints 120, during process 324 vulnerability triage tool 102 applies machine learning algorithm 136 b to the vulnerability findings 116 associated with the cluster to classify one or more of the vulnerability findings as a likely false positive, and/or a likely actual vulnerability, and/or to identify one or more likely false negatives. During process 326 vulnerability triage tool 102 prioritizes for further review and/or remediation, the vulnerability findings that have been classified as likely corresponding to actual vulnerabilities. Method 300 then returns to process 320.

Modifications, additions, or omissions may be made to method 300 depicted in FIG. 3 . Method 300 may include more, fewer, or other steps. For example, steps may be performed in parallel or in any suitable order. While discussed as vulnerability triage tool 102 (or components thereof) performing certain steps, any suitable components of system 100, including, for example, devices 106, may perform one or more steps of the method.

Although the present disclosure includes several embodiments, a myriad of changes, variations, alterations, transformations, and modifications may be suggested to one skilled in the art, and it is intended that the present disclosure encompass such changes, variations, alterations, transformations, and modifications as falling within the scope of the appended claims. 

What is claimed is:
 1. A system comprising: a database configured to store a plurality of source code segments comprising a first source code segment and a second source code segment; a memory configured to store a vulnerability finding for the first source code segment, the vulnerability finding generated through static application security testing (SAST) of the first source code segment and classified as a real vulnerability by an external review; and a hardware processor communicatively coupled to the memory and to the database, the hardware processor configured to: generate a plurality of source code fingerprints, each source code fingerprint of the plurality of source code fingerprints corresponding to a source code segment of the plurality of source code segments, wherein generating the source code fingerprint comprises: generating, from the corresponding source code segment, an abstract syntax tree; performing a data flow analysis on the corresponding source code segment, to generate information identifying flows of data through the corresponding source code segment; augmenting the abstract syntax tree associated with the source code segment with the information identifying the flows of data through the source code segment; and flattening the augmented abstract syntax tree associated with the source code segment; apply a machine learning clustering algorithm to the plurality of source code fingerprints to group the plurality of source code fingerprints into a plurality of clusters, each cluster of the plurality of clusters comprising one or more source code fingerprints, each of the one or more source code fingerprints of the cluster sharing one or more features identified by the machine learning clustering algorithm; determine that both the source code fingerprint corresponding to the first source code segment and the source code fingerprint corresponding to the second source code segment belong to a first cluster of the plurality of clusters; and in response to determining that both the source code fingerprint corresponding to the first source code segment and the source code fingerprint corresponding to the second source code segment belong to the first cluster of the plurality of clusters, transmit an alert to a device of an administrator, the alert identifying the second source code segment as vulnerable to the real vulnerability.
 2. The system of claim 1, wherein: the plurality of source code segments further comprises a third source code segment and a fourth source code segment; the memory is further configured to store: a vulnerability finding for the third source code segment, the vulnerability finding for the third source code segment generated through SAST of the third source code segment and classified as a false positive by the external review; and a vulnerability finding for the fourth source code segment, the vulnerability finding for the fourth source code segment generated through SAST of the fourth source code segment; the hardware processor is further configured to: determine that both the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment belong to a second cluster of the plurality of clusters; and in response to determining that both the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment belong to the second cluster of the plurality of clusters: determine that the vulnerability finding for the third source code segment matches the vulnerability finding for the fourth source code segment; and in response to determining that the vulnerability finding for the third source code segment matches the vulnerability finding for the fourth source code segment, classify the vulnerability finding for the fourth source code segment as the false positive.
 3. The system of claim 1, wherein the machine learning clustering algorithm implements fuzzy logic.
 4. The system of claim 1, wherein: the database is further configured to store a third source code segment and a fourth source code segment; the memory is further configured to store: a plurality of vulnerability findings for the third source code segment generated through SAST of the third source code segment; and a plurality of vulnerability findings for the fourth source code segment generated through SAST of the fourth source code segment; the machine learning clustering algorithm grouped the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment into a second cluster of the plurality of clusters; and the hardware processor is further configured to: in response to determining that the machine learning clustering algorithm grouped the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment into the second cluster: store, as a first vulnerability grouping: the third source code segment coupled to the plurality of vulnerability findings for the third source code segment; and the fourth source code segment coupled to the plurality of vulnerability findings for the fourth source code segment; apply a second machine learning algorithm to the first vulnerability grouping, the second machine learning algorithm configured to classify each vulnerability finding of the plurality of vulnerability findings for the third source code segment and the plurality of vulnerability findings for the fourth source code segment as at least one of a false positive and a real vulnerability.
 5. The system of claim 4, wherein the second machine learning algorithm is further configured to identify a false negative for the third source code segment, the false negative corresponding to a vulnerability finding for the third source code segment not included within the plurality of vulnerability findings for the third source code segment that were generated through SAST of the third source code segment.
 6. The system of claim 1, wherein the vulnerability finding for the first source code segment comprises at least one of: a buffer overflow vulnerability; an SQL injection vulnerability; and a cross-site scripting vulnerability.
 7. The system of claim 1, wherein: the memory is further configured to store repair instructions associated with the verified vulnerability finding; and the alert transmitted to the device of the administrator further comprises the repair instructions.
 8. A method comprising: generating a plurality of source code fingerprints, each source code fingerprint of the plurality of source code fingerprints corresponding to a source code segment of a plurality of source code segments, wherein generating the source code fingerprint comprises: generating, from the corresponding source code segment, an abstract syntax tree; performing a data flow analysis on the corresponding source code segment, to generate information identifying flows of data through the corresponding source code segment; augmenting the abstract syntax tree associated with the source code segment with the information identifying the flows of data through the source code segment; and flattening the augmented abstract syntax tree associated with the source code segment; applying a machine learning clustering algorithm to the plurality of source code fingerprints to group the plurality of source code fingerprints into a plurality of clusters, each cluster of the plurality of clusters comprising one or more source code fingerprints, each of the one or more source code fingerprints of the cluster sharing one or more features identified by the machine learning clustering algorithm; determining that both the source code fingerprint corresponding to the first source code segment and the source code fingerprint corresponding to the second source code segment belong to a first cluster of the plurality of clusters, wherein the first source code segment is associated with a vulnerability finding generated through static application security testing (SAST) of the first source code segment, the vulnerability finding classified as a real vulnerability by an external review; and in response to determining that both the source code fingerprint corresponding to the first source code segment and the source code fingerprint corresponding to the second source code segment belong to the first cluster of the plurality of clusters, transmitting an alert to a device of an administrator, the alert identifying the second source code segment as vulnerable to the real vulnerability.
 9. The method of claim 8, further comprising: determining that both the source code fingerprint corresponding to a third source code segment and the source code fingerprint corresponding to a fourth source code segment belong to a second cluster of the plurality of clusters, wherein: the third source code segment is associated with a second vulnerability finding generated through SAST of the third source code segment, the second vulnerability finding classified as a false positive by the external review; and the fourth source code segment is associated with a third vulnerability finding generated through SAST of the fourth source code segment; and in response to determining that the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment belong to the second cluster of the plurality of clusters: determining that the third vulnerability finding matches the second vulnerability finding; and in response to determining that the third vulnerability finding matches the second vulnerability finding, classifying the third vulnerability finding as the false positive.
 10. The method of claim 8, wherein the machine learning clustering algorithm implements fuzzy logic.
 11. The method of claim 8, further comprising: determining that the machine learning clustering algorithm grouped the source code fingerprint corresponding to a third source code segment and the source code fingerprint corresponding to a fourth source code segment into a second cluster of the plurality of clusters, wherein: a plurality of vulnerability findings for the third source code segment were generated through SAST of the third source code segment; and a plurality of vulnerability findings for the fourth source code segment were generated through SAST of the fourth source code segment; and in response to determining that the machine learning clustering algorithm grouped the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment into the second cluster: storing, as a first vulnerability grouping: the third source code segment coupled to the plurality of vulnerability findings for the third source code segment; and the fourth source code segment coupled to the plurality of vulnerability findings for the fourth source code segment; applying a second machine learning algorithm to the first vulnerability grouping, the second machine learning algorithm configured to classify each vulnerability finding of the plurality of vulnerability findings for the third source code segment and the plurality of vulnerability findings for the fourth source code segment as at least one of a false positive and a real vulnerability.
 12. The method of claim 11, wherein the second machine learning algorithm is further configured to identify a false negative for the third source code segment, the false negative corresponding to a vulnerability finding for the third source code segment not included within the plurality of vulnerability findings for the third source code segment that were generated through SAST of the third source code segment.
 13. The method of claim 8, wherein the vulnerability finding for the first source code segment comprises at least one of: a buffer overflow vulnerability; an SQL injection vulnerability; and a cross-site scripting vulnerability.
 14. The method of claim 8, wherein the alert transmitted to the device of the administrator further comprises instructions for repairing the actual vulnerability.
 15. A non-transitory computer-readable medium comprising instructions that, when executed by a hardware processor, cause the processor to: generate a plurality of source code fingerprints, each source code fingerprint of the plurality of source code fingerprints corresponding to a source code segment of the plurality of source code segments, wherein generating the source code fingerprint comprises: generating, from the corresponding source code segment, an abstract syntax tree; performing a data flow analysis on the corresponding source code segment, to generate information identifying flows of data through the corresponding source code segment; augmenting the abstract syntax tree associated with the source code segment with the information identifying the flows of data through the source code segment; and flattening the augmented abstract syntax tree associated with the source code segment; apply a machine learning clustering algorithm to the plurality of source code fingerprints to group the plurality of source code fingerprints into a plurality of clusters, each cluster of the plurality of clusters comprising one or more source code fingerprints, each of the one or more source code fingerprints of the cluster sharing one or more features identified by the machine learning clustering algorithm; determine that both the source code fingerprint corresponding to a first source code segment and the source code fingerprint corresponding to a second source code segment belong to a first cluster of the plurality of clusters, wherein the first source code segment is associated with a vulnerability finding generated through static application security testing (SAST) of the first source code segment, the vulnerability finding classified as a real vulnerability by an external review; and in response to determining that both the source code fingerprint corresponding to the first source code segment and the source code fingerprint corresponding to the second source code segment belong to the first cluster of the plurality of clusters, transmit an alert to a device of an administrator, the alert identifying the second source code segment as vulnerable to the real vulnerability.
 16. The non-transitory computer-readable medium of claim 15, wherein the instructions, when executed by the hardware processor, further cause the processor to: determine that both the source code fingerprint corresponding to a third source code segment and the source code fingerprint corresponding to a fourth source code segment belong to a second cluster of the plurality of clusters, wherein: the third source code segment is associated with a second vulnerability finding generated through SAST of the third source code segment, the second vulnerability finding classified as a false positive by the external review; and the fourth source code segment is associated with a third vulnerability finding generated through SAST of the fourth source code segment; and in response to determining that the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment belong to the second cluster of the plurality of clusters: determine that the vulnerability finding for the third source code segment matches the vulnerability finding for the fourth source code segment; and in response to determining that the vulnerability finding for the third source code segment matches the vulnerability finding for the fourth source code segment, classify the vulnerability finding for the fourth source code segment as the false positive.
 17. The non-transitory computer-readable medium of claim 15, wherein the machine learning clustering algorithm implements fuzzy logic.
 18. The non-transitory computer-readable medium of claim 15, wherein the instructions, when executed by the hardware processor, further cause the processor to: determine that the machine learning clustering algorithm grouped both the source code fingerprint corresponding to a third source code segment and the source code fingerprint corresponding to a fourth source code segment into a second cluster of the plurality of clusters, wherein: a plurality of vulnerability findings for the third source code segment were generated through SAST of the third source code segment; and a plurality of vulnerability findings for the fourth source code segment were generated through SAST of the fourth source code segment; and in response to determining that the machine learning clustering algorithm grouped both the source code fingerprint corresponding to the third source code segment and the source code fingerprint corresponding to the fourth source code segment into the second cluster: store, as a first vulnerability grouping: the third source code segment coupled to the plurality of vulnerability findings for the third source code segment; and the fourth source code segment coupled to the plurality of vulnerability findings for the fourth source code segment; and apply a second machine learning algorithm to the first vulnerability grouping, the second machine learning algorithm configured to classify each vulnerability finding of the plurality of vulnerability findings for the third source code segment and the plurality of vulnerability findings for the fourth source code segment as at least one of a false positive and a real vulnerability.
 19. The non-transitory computer-readable medium of claim 18, wherein the second machine learning algorithm is further configured to identify a false negative for the third source code segment, the false negative corresponding to a vulnerability finding for the third source code segment not included within the plurality of vulnerability findings for the third source code segment that were generated through SAST of the third source code segment.
 20. The non-transitory computer-readable medium of claim 15, wherein the vulnerability finding for the first source code segment comprises at least one of: a buffer overflow vulnerability; an SQL injection vulnerability; and a cross-site scripting vulnerability. 